package com.why.remote;

import com.github.pagehelper.PageInfo;
import com.why.dto.NhDto;
import com.why.pojo.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

public interface PaibanRemote {

    //查询所有护工
    @RequestMapping("/queryAllNursingWorkers")
    NhDto<List<EmployeesAccount>> queryAllNursingWorkers();

    //查询所有房间号
    @RequestMapping("/queryRoomNumber")
    NhDto<List<Room>> queryRoomNumber();

    //分页查询所有卡号
    @RequestMapping("/queryAllIcCard")
    NhDto<PageInfo<IcCard>> queryAllIcCard(@RequestParam HashMap<String,Object> map);

    //根据卡号查找消费记录
    @RequestMapping("/queryExpenseByNumber")
    NhDto<List<RunningWater>> queryExpenseByNumber(@RequestParam("icID") Integer icID);

    //根据卡号查找老人信息
    @RequestMapping("/queryOldManByNumber")
    NhDto<OldMan> queryOldManByNumber(@RequestParam("icID")Integer icID);

    //护工护理的次数
    @RequestMapping("/queryNumberOfNursing")
    NhDto<List<Expense>> queryNumberOfNursing(@RequestParam HashMap<String, Object> map);
}
